package com.qf.data.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.qf.data.base.entity.BaseEntity;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


/**
 * (GoodsInfo)表实体类
 *
 * @author makejava
 * @since 2022-07-06 14:13:37
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
public class GoodsInfo extends BaseEntity implements Serializable {
    //id
    @TableId(type = IdType.AUTO)
    private Long id;
    //商品分类的外键 - goods_fenlei关联
    private Long fid;
    //商品标题
    private String title;
    //商品价格
    private Double price;
    //商品的基本描述（富文本）
    private String info;
    //库存
    private Integer save;
    //返利的比例 1 ~ 0
    private Double bili;

    //封面列表
    @TableField(exist = false)
    private List<GoodsImage> goodsImages;
}


